
namespace ShoppingCart.Business.Entity
{
	using System;

	/// <summary>
	/// Represents a Cuenta in the database.
	/// </summary>
	[Serializable]
	public class Cuenta : BaseEntity
	{
		/// <summary>
		/// Gets or sets the IdCuenta value.
		/// </summary>
		public int IdCuenta { get; set; }

		/// <summary>
		/// Gets or sets the Numero value.
		/// </summary>
		public string Numero { get; set; }

		/// <summary>
		/// Gets or sets the Tipo value.
		/// </summary>
		public byte Tipo { get; set; }

        public string Moneda 
        {
            get { return Enum.GetName(typeof(Enums.Moneda), Tipo); }
        }

		/// <summary>
		/// Gets or sets the Banco value.
		/// </summary>
		public Banco Banco { get; set; }

        public override string ToString()
        {
            return Numero;
        }
	}
}
